package dict

import (
	"github.com/ifnk/micro-blog/internal/pkg/dbcontext"
	"github.com/ifnk/micro-blog/internal/pkg/log"
	"github.com/ifnk/micro-blog/protobuf/dict_pb"
)

func NewDictServer(logger *log.Logger, db *dbcontext.GormDB, jinzhuDB *dbcontext.JinZhuDB) DictServer {
	return DictServer{
		logger:                   logger,
		db:                       db,
		DictServiceDefaultServer: dict_pb.DictServiceDefaultServer{DB: jinzhuDB.DB},
	}
}

type DictServer struct {
	dict_pb.DictServiceDefaultServer
	logger *log.Logger
	db     *dbcontext.GormDB
}
